package com;

import org.junit.Test;

/**
 * @author Liangyaoyun
 */
public class 代码优化 {
private interface UserSevice{
    int add(int a,int b);
}
@Test
    public void test(){
    UserSevice userSevice=(a,b)-> a+b;
    System.out.println(userSevice.add(1,2));
    UserSevice userSevice1=(b,c)->3+4;
    System.out.println(userSevice1.add(3,4));
}
}